import { ReactiveCommand } from './ReactiveCommand';

import { _decorator, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('RxCCConfig')
export class RxCCConfig {
    public static instance: RxCCConfig;

    buttonWillClickCommand = ReactiveCommand.Create<{ node: Node }>();
    buttonTouchStartCommand = ReactiveCommand.Create<{ node: Node }>();
    buttonTouchEndCommand = ReactiveCommand.Create<{ node: Node }>();
}

export const rxccconfig = RxCCConfig.instance = new RxCCConfig();
